package com.yangquan.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

@Data
public class Student {

    /**
     * 主键自增  Id
     */
    private Integer id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 薪水
     */
    @JsonIgnore
    private String salary;

    public Student(String name, String salary) {
        this.name = name;
        this.salary = salary;
    }

    public Student() {
    }

    public Student(Integer id, String name, String salary) {
        this.id = id;
        this.name = name;
        this.salary = salary;
    }
}
